package br.upe.portlet.estagio.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * <a href="AlunoSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>br.upe.portlet.estagio.service.http.AlunoServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see br.upe.portlet.estagio.service.http.AlunoServiceSoap
 *
 */
public class AlunoSoap implements Serializable {
    private String _matricula;
    private long _companyId;
    private long _userId;
    private Date _createDate;
    private Date _modifiedDate;
    private long _codigoUsuario;
    private long _codigoCurso;

    public AlunoSoap() {
    }

    public static AlunoSoap toSoapModel(Aluno model) {
        AlunoSoap soapModel = new AlunoSoap();

        soapModel.setMatricula(model.getMatricula());
        soapModel.setCompanyId(model.getCompanyId());
        soapModel.setUserId(model.getUserId());
        soapModel.setCreateDate(model.getCreateDate());
        soapModel.setModifiedDate(model.getModifiedDate());
        soapModel.setCodigoUsuario(model.getCodigoUsuario());
        soapModel.setCodigoCurso(model.getCodigoCurso());

        return soapModel;
    }

    public static AlunoSoap[] toSoapModels(List<Aluno> models) {
        List<AlunoSoap> soapModels = new ArrayList<AlunoSoap>(models.size());

        for (Aluno model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new AlunoSoap[soapModels.size()]);
    }

    public String getPrimaryKey() {
        return _matricula;
    }

    public void setPrimaryKey(String pk) {
        setMatricula(pk);
    }

    public String getMatricula() {
        return _matricula;
    }

    public void setMatricula(String matricula) {
        _matricula = matricula;
    }

    public long getCompanyId() {
        return _companyId;
    }

    public void setCompanyId(long companyId) {
        _companyId = companyId;
    }

    public long getUserId() {
        return _userId;
    }

    public void setUserId(long userId) {
        _userId = userId;
    }

    public Date getCreateDate() {
        return _createDate;
    }

    public void setCreateDate(Date createDate) {
        _createDate = createDate;
    }

    public Date getModifiedDate() {
        return _modifiedDate;
    }

    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;
    }

    public long getCodigoUsuario() {
        return _codigoUsuario;
    }

    public void setCodigoUsuario(long codigoUsuario) {
        _codigoUsuario = codigoUsuario;
    }

    public long getCodigoCurso() {
        return _codigoCurso;
    }

    public void setCodigoCurso(long codigoCurso) {
        _codigoCurso = codigoCurso;
    }
}
